<table align="center" border="1">
	<tr>
		<th>Codigo</th>
		<th>Nombre</th>
		<th>Appaterno</th><br>
		<th>Apmaterno</th>
	</tr>
<?php
$total=count($lista);
	for($i=0;$i<$total;$i++){
		echo "<tr>";
		echo "<td>".$lista[$i]['codigo']."</td>";
		echo "<td>".$lista[$i]['nombre']."</td>";
		echo "<td>".$lista[$i]['appaterno']."</td>";
		echo "<td>".$lista[$i]['apmaterno']."</td>";
		echo "</tr>";
	}

?>

</table>
